<head>

<script src="prototype.js" type="text/javascript"></script>

<script>

       // http://81.37.250.112:27015/Server/server.php";
//header("Content-Type: application/json", true);
ejemploAJAX();

function ejemploAJAX()
{


	new Ajax.Request('http://81.37.250.112:27015/cw-p3/trunk/Pruebas/server2.php', {
  method:'get',
   parameters: {"num1":1, "num2":2},
  onSuccess: function(transport) {
    var response = transport.responseText || "no response text";
    alert("Success! \n\n" + response);
  },
  onFailure: function() { alert('Something went wrong...'); }
});


}

function mostrarRespuesta(xmlHttpRequest, responseHeader)
{

      var json_data = xmlHttpRequest.responseText;
      var the_object = eval("(" + json_data + ")");
      alert(the_object);

	$('resultado').innerHTML = xmlHttpRequest.responseText;
}


</script>

</head>

<?php


?>
